<?php
/**
 * =============================================================================
 * Class: Tv_Arte_Header_Env
 * Last mod: 21/09/2011 14:40:37
 *
 */
class Tv_Arte_Header_Env
{
	/**
	 * @staticvar   Array
	 */
	private static $_env;
	/**
	 * @static
	 * @param   String
	 * @param   String
	 * @return  void
	 */
	public static function get($value)
	{
	    self::$_env = Array(
	        'development' => Array(
                'root_http' => 'http://localhost/trunk/header-include'
	        ),
            'production' => Array(
                'root_http' => 'http://php4.arte.tv/header-include'
                //'root_http' => 'http://develop.arte.tv/header-include'
	        )
	    );
	    if (!defined('APPLICATION_ENV')) {
	        throw new Tv_Arte_Header_Exception('Required constant APPLICATION_ENV is not defined');
	    }
	    return (isset(self::$_env[APPLICATION_ENV][$value]))? self::$_env[APPLICATION_ENV][$value] : $value;
	}
}